import request from '@/utils/request'
// 获取可领取的优惠券列表
export function getCouponList(params) {
  return request({
    url: '/marketing/coupon/getList',
    method: 'get',
    params
  })
}

// 领取优惠券
export function receiveCoupon(id) {
  return request({
    url: `/marketing/coupon/receive/${id}`,
    method: 'get'
  })
}

// 获取用户优惠券列表
export function getUserCouponList(params) {
  return request({
    url: '/userCoupon/list',
    method: 'get',
    params
  })
}